// 判断用户年龄
export const formatAge = function (Timestamp){
    let birthdays = new Date(Timestamp)
    let d = new Date();
    return d.getFullYear() -
        birthdays.getFullYear() -
        (d.getMonth() < birthdays.getMonth() ||
        (d.getMonth() == birthdays.getMonth() &&
            d.getDate() < birthdays.getDate())
            ? 1
            : 0);
}